package com.huiyujinrong.qiangdanbao.model;


import com.huiyujinrong.qiangdanbao.bean.FaceEngineBean;
import com.huiyujinrong.qiangdanbao.bean.FaceFindBean;
import com.huiyujinrong.qiangdanbao.bean.UserInforBean;
import com.huiyujinrong.qiangdanbao.network.AppService;

import javax.inject.Inject;

import happyloan.core.EventBusUtil;

public class UserInforModel {

    private AppService service;

    @Inject UserInforModel(AppService service){
        this.service=service;
    }

    public void getUserInforDta(String user_id){
        EventBusUtil<UserInforBean> util = new EventBusUtil<>();
        util.sendEvent4Call(service.selectUserInfor(user_id));
    }


    /**
     *
     * @param user_id
     */
    public void findZmxyFaceRecordByUserId(String user_id) {
        EventBusUtil<FaceFindBean> busUtil = new EventBusUtil<>();
        busUtil.sendEvent4Call(service.findZmxyFaceRecordByUserId(user_id));
    }


    /**
     * 人脸识别
     *
     * @param user_id
     */
    public void getZmxyFaceEngine(String user_id) {
        EventBusUtil<FaceEngineBean> busUtil = new EventBusUtil<>();
        busUtil.sendEvent4Call(service.getZmxyFaceEngine(user_id));
    }
}
